package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author WEN
 * @Date 2024/5/8 0008
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjRoleAuthor对象", description="角色权限表")
@TableName("zj_role_author")
public class RoleAuthorDefaultData {

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "角色表ID")
    private Long roleId;

    @ApiModelProperty(value = "权限表ID")
    private Long authorId;

    @ApiModelProperty(value = "父级权限菜单ID")
    private Long parentAuthorId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新x时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;
}
